<!DOCTYPE html>
<html>
  <head>
    <title>{{$page_title or ''}}</title>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="keywords" content="{{$page_keywords or ''}}">
    <meta name="description" content="{{$page_description or ''}}">
    <link rel="stylesheet" href="{{web_static('pc/v3/css/common.min.css',true)}}">
    @stack('styles')
  </head>
  <body>
    @section('header')
      <div class="global-header clearfix">
        <div class="global-header-container container"><a title="{{$city->name}}爱上租，让租房简单有趣！" href="{{url('/')}}" class="logo"><img src="{{web_static('pc/v3/assets/logo.jpg')}}" alt="{{$city->name}}公寓出租租房网站"></a>
          <div class="city"><i>{{$city->name}}</i><span class="current-city icon icon-arrowDown"></span></div>
          <div class="download-app"><a href="{{seo_url(\Common\Define\Route\WebRoute::DOWNLOAD)}}" class="current-app icon icon-app"><span>APP下载</span></a></div>
          <div class="nav clearfix">
            @foreach (Common\Define\View\WebNav::items() as $item)<a href="{{seo_url($item['url'])}}" class="nav-item @if(in_array($url->getSegment(1),$item['active'])) active @endif">{{$item['name']}}</a>
            @endforeach
          </div>
          <div class="select-city">
            <div class="select-city-container">
              <ul>
                @foreach (Common\Model\Com\City::getAllCity() as $item)
                @if(in_array($url->getSegment(1), \Common\Define\View\WebCitySwitch::items()))
                  @php $cityUrl = $url->withSubDomain($item->identifier)->withPath($url->getSegment(1))->withoutQueryParameter('q')->toString() @endphp
                @elseif(in_array($url->getSegment(1), \Common\Define\View\WebCitySwitch::items2()))
                  @php $cityUrl = $url->withSubDomain($item->identifier)->withPath($url->getSegment(1).'/'.$url->getSegment(2))->withoutQueryParameter('q')->toString() @endphp
                @elseif(in_array($url->getSegment(1), array('zhuanti')))
                  @php $cityUrl = $url->withSubDomain($item->identifier)->withPath($url->getSegment(1).'/'.str_replace($city->identifier,$item->identifier,$url->getSegment(2)))->withoutQueryParameter('q')->toString() @endphp
                @else
                  @php $cityUrl = $url->withSubDomain($item->identifier)->withPath('')->withoutQueryParameter('q')->toString() @endphp
                @endif
                <li><a href="{{$cityUrl}}" class="city-item @if($city->id == $item->id) active @endif">{{$item->name}}</a></li>
                @endforeach
              </ul>
            </div>
          </div>
        </div>
      </div>
    @show
    @yield('content')
    @section('footer')
      <div class="links">
        <div class="container links-col">
          @if(isset($homeLink))
            @php $seoLinkInside = $homeLink; @endphp
          @else
            @php $seoLinkInside = \Common\Model\Seo\LinkClassify::getOtherLink($city->identifier); @endphp
          @endif
          @php $currentRoute = '/';@endphp
          @if(!isset($seoLinkFriend))
            @if($url->getSegment(1))
              @php $currentRoute = $url->getSegment(1);@endphp
            @endif
            @php $seoLinkFriend = \Common\Model\Seo\LinkFriend::getSeoLinkFriend($city->identifier, $currentRoute); @endphp
          @endif
          <div class="links-triggers">
            @if(!$seoLinkInside->isEmpty())
              @foreach ($seoLinkInside as $item)<a href="javascript:;" title="{{$item->name}}" class="links-trigger">{{$item->name}}</a>
              @endforeach
            @endif
            @if(isset($seoLinkFriend) && !$seoLinkFriend->isEmpty())<a href="javascript:;" title="友情链接" class="links-trigger">友情链接</a>
            @endif
          </div>
          <div class="links-panels clearfix">
            @if(!$seoLinkInside->isEmpty())
              @foreach ($seoLinkInside as $item)
                @if(!$item->links->isEmpty())
                  <div data-test="{{$loop->iteration}}" class="links-content">
                    @foreach ($item->links as $link)<a href="{{$link->url}}" class="link-item">{{$link->name}}</a>
                    @endforeach
                  </div>
                @elseif(!$item->sub_classify->isEmpty())
                  <ul class="links-content area-price-type">
                    @foreach ($item->sub_classify as $class)
                      <li><span>{{$class->name}}</span>
                        @if(!$class->links->isEmpty())
                          @foreach ($class->links as $link)<a href="{{$link->url}}">{{$link->name}}</a>
                          @endforeach
                        @endif
                      </li>
                    @endforeach
                  </ul>
                @endif
              @endforeach
              @if(isset($seoLinkFriend) && !$seoLinkFriend->isEmpty())
                <div class="links-content">
                  @foreach ($seoLinkFriend as $link)<a href="{{$link->url}}" target="_blank" class="link-item">{{$link->name}}</a>
                  @endforeach
                </div>
              @endif
            @endif
          </div>
        </div>
      </div>
      <div class="isz-right-nav"><a id="isz-customer-service" onclick="ares_push('right_im','/','click');" class="btn-new-wechat"><i class="icon icon-enquire"></i>
          <h5>立</h5>
          <h5>即</h5>
          <h5>咨</h5>
          <h5>询</h5></a><a onclick="ares_push('right_yezhu','/','click');" class="btn-new-own"><i class="icon icon-entrust"></i>
          <div class="btn-own-icon">业主委托<i></i></div></a><a class="btn-new-qrcode"><i class="icon icon-download"></i>
          <div class="btn-qrcode-down"><img src="{{web_static('pc/v3/assets/notice.svg')}}">
            <div class="title">爱上租APP</div><i></i>
          </div></a><a class="site-group  site-new-hang">
          <div class="btn-top"><i class="icon icon-backTop"></i>
            <div class="btn-top-text">返回顶部<i></i></div>
          </div></a></div>
      <div class="global-footer">
        <div class="container">
          <dl>
            <dt>关于爱上租
              <dd><a href="{{seo_url(\Common\Define\Route\WebRoute::ABOUT)}}" rel="nofollow">公司简介</a></dd>
              <dd><a href="{{seo_url(\Common\Define\Route\WebRoute::ABOUT_HISTORY)}}" rel="nofollow">发展历程</a></dd>
              <dd><a href="{{seo_url(\Common\Define\Route\WebRoute::ABOUT_CONTACT)}}" rel="nofollow">联系我们</a></dd>
              <dd><a href="{{seo_url(\Common\Define\Route\WebRoute::ABOUT_JOIN)}}" rel="nofollow">加入我们</a></dd>
            </dt>
          </dl>
          <dl>
            <dt>爱上租社区
              <dd><a href="{{seo_url(\Common\Define\Route\WebRoute::BLOG_ACTIVITY)}}">租客活动</a></dd>
              <dd><a href="{{seo_url(\Common\Define\Route\WebRoute::BLOG_LIFE)}}">品质生活</a></dd>
              <dd><a href="{{seo_url(\Common\Define\Route\WebRoute::BLOG_YOUNGER)}}">有趣青年</a></dd>
              <dd><a href="{{seo_url(\Common\Define\Route\WebRoute::BLOG_NEWS)}}">新鲜资讯</a></dd>
            </dt>
          </dl>
          <dl>
            <dt>使用帮助
              <dd><a href="{{seo_url(\Common\Define\Route\WebRoute::YEZHU)}}" rel="nofollow">业主入驻</a></dd>
              <dd><a href="javascript:;" id="common-people-link">申请友链
                  <div class="person-link">
                    <p><img src="{{web_static('pc/v3/assets/list/qq.png')}}"><span>QQ   &nbsp;&nbsp;1553507997</span></p>
                    <p><img src="{{web_static('pc/v3/assets/email.png')}}"><span>邮箱 &nbsp;&nbsp;chenhanruo@ishangzu.com</span></p>
                  </div></a></dd>
              <dd><a href="{{seo_url(\Common\Define\Route\WebRoute::SITEMAP)}}" rel="nofollow">网站地图</a></dd>
              <!-- dd -->
              <!-- a(href='javascript:;') 金融分期 -->
              <!-- dd -->
              <!-- a(href='javascript:;') 租住公约 -->
              <dd class="btn-qrcode">
                <div class="qrcode"><img src="{{web_static('pc/v3/assets/notice.svg')}}">
                  <p style="text-align:center">扫一扫</p><i class="arrow"></i><i class="arrow-shadow"></i>
                </div>
              </dd>
            </dt>
          </dl>
          <div class="contact-links">
            <p class="remark">爱上租客服</p>
            <p class="tel">400-018-2323</p>
            <p class="work-date">周一至周日9:00-22:00</p>
          </div>
          <div class="contact-links-app">
            <div class="links-app-app mr100"><img src="{{web_static('pc/v3/assets/notice.svg')}}">
              <p>下载爱上租app</p>
            </div>
            <div class="links-app-app"><img src="{{web_static('pc/v3/assets/wecat.svg')}}">
              <p>关注爱上租公众号</p>
            </div>
          </div>
        </div>
        <div class="copy-container">
          <p class="copyright">©{{date('Y')}} Hangzhou ishangzu Technology Co.,Ltd. All rights reserved.  备案号：浙ICP备15007224号-2<a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=33010802006107" rel="nofollow">浙公网安备 33010802006107号</a></p>
        </div>
      </div>
      <div id="owner-popover" class="message-box2">
        <div class="bg-fff message-box"><i title="关闭" class="close"></i>
          <div class="message-title-text">委托您的房子吧</div>
          <ul class="message-list">
            <li class="mess-first-name">
              <div class="mess-village-nameerr tip">请输入称呼</div>
              <input type="text" placeholder="您的称呼" id="owner-name" maxlength="32"><i class="icon icon-required"></i>
            </li>
            <li class="mess-city-phone">
              <div class="mess-village-nameerr tip">请输入您的手机号</div>
              <input type="text" placeholder="手机号码" id="owner-phone" maxlength="11"><i class="icon icon-required"></i>
            </li>
            <li class="mess-city-change">
              <div class="mess-village-nameerr tip">请先选择城市</div>
              <input type="text" id="mess-city-input" onfocus="this.blur();" placeholder="请选择城市" value="{{$city->name}}" data-id="{{$city->area_code}}"><i class="city-change-false"></i>
              <div class="city-change">
                @foreach (Common\Model\Com\City::getAllCity() as $item)
                <p id="@if($item->area_code==$city->area_code){{'city-fix'}}@endif" value="{{$item->area_code}}" class="city-list-for">{{$item->name}}</p>
                @endforeach
              </div>
            </li>
            <li class="mess-villages-name">
              <input type="text" id="village-name" placeholder="请填写小区" maxlength="128" class="mess-vill-name"><i class="icon icon-required"></i>
              <div class="mess-village-name"></div>
              <div class="mess-village-nameerr tip">对不起，您的小区暂不接受委托</div>
            </li>
            <li class="mess-last-address">
              <div class="mess-village-nameerr tip">请输入房屋地址</div>
              <input type="text" id="village-address" placeholder="房屋地址，例：26幢3单元1101" maxlength="233">
            </li>
          </ul>
          <div id="message-sub-start">
            <div id="message-sub-boxs" onclick="ares_push('yezhu_submit','/','click');" class="message-sub-start">提交</div><i class="icon icon-phonecode"></i><span>400-018-2323</span>
          </div>
        </div>
        <div class="mess-succ mess-succ-back"><img src="{{web_static('pc/v3/assets/cluesucc.png')}}">
          <p>提交成功</p><span>客服人员会很快联系你</span>
        </div>
      </div>
    @show
    @if(empty(app('appUuid')))
      <script src="//ares.ishangzu.com/ares.js?ba1b74ff65256dbc,empty"></script>
    @else
      <script src="//ares.ishangzu.com/ares.js?ba1b74ff65256dbc,{{app('appUuid')}}"></script>
    @endif
    <script>
      (function () {
          var hm = document.createElement("script");
          hm.src = "https://hm.baidu.com/hm.js?2d1fb77e9aeb419bd6ce2ed0ad9592af";
          var s = document.getElementsByTagName("script")[0];
          s.parentNode.insertBefore(hm, s);
      })();
    </script>
    <script>
      (function () {
          var hm = document.createElement("script");
          hm.src = "//hm.baidu.com/hm.js?95b48bca16692265c14e9a74c0d0f810";
          var s = document.getElementsByTagName("script")[0];
          s.parentNode.insertBefore(hm, s);
      })();
    </script>
    <script>
      (function(){
          var bp = document.createElement('script');
          var curProtocol = window.location.protocol.split(':')[0];
          if (curProtocol === 'https'){
              bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
          }else{
              bp.src = 'http://push.zhanzhang.baidu.com/push.js';
          }
          var s = document.getElementsByTagName("script")[0];
          s.parentNode.insertBefore(bp, s);
      })();
    </script>
    <script src="https://qiyukf.com/script/{{config('qiyu.app_key')}}.js" charset="UTF-8"></script>
    @php $qiyuCustomerService = Common\Standard\Object\stdQiyuCustomerService::instance($city->toArray()); @endphp
    @php $qiyuConfig = $qiyuCustomerService->getPCSiteConfig($list_url ?? null, $house ?? null); @endphp
    <script>
      ysf.config({
          uid: "{{$qiyuConfig['_id']}}",
          staffid: "{{$qiyuConfig['_staff_id']}}",
          groupid: "{{$qiyuConfig['_group_id']}}",
          data: JSON.stringify([
              {"key": "real_name", "value": "{{$qiyuCustomerService->getPCRealName()}}"},
              {"type": "crm_param", "key": "source", "value": "PC", "area": "user"},
              {"type": "crm_param", "key": "city_code", "value": "{{$qiyuConfig['_city_code']}}", "area": "user"},
              {"type": "crm_param", "key": "district_code", "value": "{{$qiyuConfig['_district_code']}}", "area": "user"},
              {"type": "crm_param", "key": "circle_code", "value": "{{$qiyuConfig['_circle_code']}}", "area": "user"}
          ])
      });
    </script>
    <script src="{{web_static('pc/v3/js/common.min.js',true)}}"></script>
    @stack('scripts')
  </body>
</html>